package me.sealer.service;

import me.sealer.annotation.Action;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by sealer on 09-09-2017.
 */
public class FunctionService {
    Logger logger = LoggerFactory.getLogger(FunctionService.class);

    @Action(value = "service")
    public String say(String something) {
        return "Hello " + something;
    }


    public void initDev() {
        logger.info(FunctionService.class.getSimpleName() + " dev is constructed");
    }

    public void destroyDev() {
        logger.info(FunctionService.class.getSimpleName() + " dev is destroyed");
    }

    public void initProd() {
        logger.info(FunctionService.class.getSimpleName() + " prod is constructed");
    }

    public void destroyProd() {
        logger.info(FunctionService.class.getSimpleName() + " prod is destroyed");
    }
}
